function PeerManager(peerDiv){
   var template = "peerTemplate";
   var peers = new Object();
   var PeerObj = new Object();
   var OldPeerObj = new Object();
      
   this.update = function(peer){
     
     PeerObj.peers = peer
     
     var reflesh_page = new Boolean();
     var flag = new Boolean();
     reflesh_page = false;
     flag = false;
     
     for(var i in peer){
     	flag = false;
     	for(var j in OldPeerObj.peers){
     		if (peer[i].name == OldPeerObj.peers[j].name&& 
     			(peer[i].nickName == OldPeerObj.peers[j].nickName) &&
     			(peer[i].photoURL == OldPeerObj.peers[j].photoURL)){
     			flag = true;
     		}
     	}
     	
     	if(flag == false){
     		reflesh_page = true;
     	}
     }
     /*for (var i in PeerObj.peers) {
     	if(peer[i].name == ){
     		reflesh_page = true;
     	}
     }*/
       if(reflesh_page){
       		if(OldPeerObj.peers != null)
       			alert("Refresh User Info seccessfully");
       		OldPeerObj.peers = peer;
       		$(peerDiv).innerHTML= TrimPath.processDOMTemplate(template, PeerObj);	
       }   
          
   
   }
}